﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   <table>
        <tr>
            <th>
                商品编号
            </th>
             <th>
                商品图片
            </th><th>
                商品名称
            </th>
            <th>
                商城价
            </th>
             <th>
                赠送积分
            </th>
            <th>
                商品数量
            </th>            
            <th>
                删除商品
            </th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
             <%=item.ProductId %>
            </td>
            <td>
            <img src='<%=item.Product.ThumbImageUrl %>' /> 
            </td>
            <td>
            <%=item.ProductName %>
            </td>
            <td>
                <%=item.TotalPrice%>
            </td>
            <td>
                <%=item.Product.Points %>
            </td>
            <td>
              <%=item.Quanitiy %>
            </td>
            <td>                
                <%: Html.ActionLink("删除", "Delete", new { id=item.Id })%>
            </td>
        </tr>
        <% } %>
    </table>

</asp:Content>
